package news.example;

/**
 * @author JiangJ
 * @date 2022/3/1 14:24
 */
public class Publish {
    private Integer id;
    /**
     * 主题
     */
    private String theme;
    /**
     * 标题
     */
    private String title;
    /**
     * 摘要
     */
    private String digest;
    /**
     * 发布者昵称
     */
    private String username;
    /**
     * 发布时间
     */
    private String createtime;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 内容
     */
    private String content;

    public Publish(Integer id, String theme, String title, String digest, String username, String createtime, String content) {
        this.id = id;
        this.theme = theme;
        this.title = title;
        this.digest = digest;
        this.username = username;
        this.createtime = createtime;
        this.content = content;
    }

    public Publish() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "Publish{" +
                "id=" + id +
                ", theme='" + theme + '\'' +
                ", title='" + title + '\'' +
                ", digest='" + digest + '\'' +
                ", username='" + username + '\'' +
                ", createtime='" + createtime + '\'' +
                '}';
    }
}
